emacs.git
7 years agoAdd note to docstring for which-key-idle-delay
Justin Burkett [Fri, 15 Mar 2019 12:48:23 +0000 (08:48 -0400)]
Add note to docstring for which-key-idle-delay

Ref #206

7 years agoAdd debugging messages for buffer sizing
Justin Burkett [Wed, 6 Mar 2019 15:18:52 +0000 (10:18 -0500)]
Add debugging messages for buffer sizing

7 years agoDon't ignore case when making replacements
Justin Burkett [Fri, 1 Mar 2019 15:41:36 +0000 (10:41 -0500)]
Don't ignore case when making replacements

Fixes #204

7 years agoVersion 3.3.2
Justin Burkett [Mon, 25 Feb 2019 19:10:06 +0000 (14:10 -0500)]
Version 3.3.2

7 years agoAlways check non-major-mode replacements in which-key--maybe-replace
Justin Burkett [Mon, 25 Feb 2019 14:57:03 +0000 (09:57 -0500)]
Always check non-major-mode replacements in which-key--maybe-replace

7 years agoSimplify finding and matching replacements
Justin Burkett [Mon, 25 Feb 2019 03:57:31 +0000 (22:57 -0500)]
Simplify finding and matching replacements

Don't try to grab all matching replacements ahead of time, because later ones
may not match if earlier ones make deletions.

Fixes #202

7 years agoVersion 3.3.1
Justin Burkett [Wed, 14 Nov 2018 14:34:39 +0000 (09:34 -0500)]
Version 3.3.1

7 years agoFix use of describe-prefix-bindings in which-key-show-standard-help
Justin Burkett [Wed, 14 Nov 2018 14:32:27 +0000 (09:32 -0500)]
Fix use of describe-prefix-bindings in which-key-show-standard-help

Use describe-prefix-bindings directly if we do not enter through
which-key-C-h-dispatch.

Fixes #198

7 years agoCheck for existence of buffer in which-key--popup-showing-p
Justin Burkett [Thu, 8 Nov 2018 15:21:07 +0000 (10:21 -0500)]
Check for existence of buffer in which-key--popup-showing-p

Fixes #197

7 years agoMention #130 in README
Justin Burkett [Tue, 28 Aug 2018 15:44:32 +0000 (11:44 -0400)]
Mention #130 in README

7 years agoMake Travis test on v26.1
Justin Burkett [Wed, 27 Jun 2018 14:28:44 +0000 (10:28 -0400)]
Make Travis test on v26.1

7 years agoVersion 3.3.0
Justin Burkett [Thu, 21 Jun 2018 19:38:47 +0000 (15:38 -0400)]
Version 3.3.0

7 years agoFix handling of duplicate (evil) bindings in show keymap
Justin Burkett [Fri, 8 Jun 2018 12:51:48 +0000 (08:51 -0400)]
Fix handling of duplicate (evil) bindings in show keymap

7 years agoUse window-size-change-functions for detecting size changes
Justin Burkett [Fri, 1 Jun 2018 13:46:35 +0000 (09:46 -0400)]
Use window-size-change-functions for detecting size changes

Fixes #193

7 years agoAdd support for evil's auxiliary maps in show-keymap functions
Justin Burkett [Thu, 31 May 2018 02:02:11 +0000 (22:02 -0400)]
Add support for evil's auxiliary maps in show-keymap functions

7 years agoFix prefix bindings in which-key-show-major-mode
Justin Burkett [Thu, 31 May 2018 01:43:50 +0000 (21:43 -0400)]
Fix prefix bindings in which-key-show-major-mode

7 years agoFix behavior of f and t in evil operator map
Justin Burkett [Tue, 22 May 2018 14:11:15 +0000 (10:11 -0400)]
Fix behavior of f and t in evil operator map

f and t (also F and T) read characters manually, so the popup should not be
shown after these commands. This only applies if
which-key-show-operator-state-maps is non-nil.

Fixes #191

7 years agoVersion 3.2.0
Justin Burkett [Thu, 26 Apr 2018 14:33:36 +0000 (10:33 -0400)]
Version 3.2.0

8 years agoFix and improve defcustoms
Michał K [Wed, 21 Mar 2018 10:31:52 +0000 (11:31 +0100)]
Fix and improve defcustoms

8 years agoFix switching to top-level from which-key-undo-key
Justin Burkett [Thu, 1 Mar 2018 18:18:43 +0000 (13:18 -0500)]
Fix switching to top-level from which-key-undo-key

8 years agoFactor out which-key--this-command-keys function
Justin Burkett [Thu, 1 Mar 2018 02:29:52 +0000 (21:29 -0500)]
Factor out which-key--this-command-keys function

8 years agoFixes related to removal of which-key--current-prefix
Justin Burkett [Thu, 1 Mar 2018 02:19:23 +0000 (21:19 -0500)]
Fixes related to removal of which-key--current-prefix

8 years agoFix display of meta bindings in which-key-show-keymap
Justin Burkett [Wed, 28 Feb 2018 16:20:20 +0000 (11:20 -0500)]
Fix display of meta bindings in which-key-show-keymap

8 years agoFix which-key--create-pages
Justin Burkett [Wed, 28 Feb 2018 13:03:16 +0000 (08:03 -0500)]
Fix which-key--create-pages

8 years agoRemove which-key--current-prefix
Justin Burkett [Wed, 28 Feb 2018 12:57:44 +0000 (07:57 -0500)]
Remove which-key--current-prefix

8 years agoAdd prefix arg to which-key--get-current-bindings and ..
Justin Burkett [Wed, 28 Feb 2018 02:05:58 +0000 (21:05 -0500)]
Add prefix arg to which-key--get-current-bindings and ..

which-key--get-bindings

8 years agoRemove a bunch of global variables
Justin Burkett [Wed, 28 Feb 2018 01:32:19 +0000 (20:32 -0500)]
Remove a bunch of global variables

Remove need for which-key--using-top-level. Add prefix-title slot to
which-key--pages object.  Remove which-key--using-show-keymap. Remove
which-key--current-show-keymap-name. Remove
which-key--using-show-operator-keymap.

8 years agoAdd and use which-key--automatic-display
Justin Burkett [Wed, 28 Feb 2018 01:30:07 +0000 (20:30 -0500)]
Add and use which-key--automatic-display

8 years agoUse cl-struct to hold which-key pages
Justin Burkett [Tue, 27 Feb 2018 14:04:39 +0000 (09:04 -0500)]
Use cl-struct to hold which-key pages

8 years agoAdd which-key-toggle-docstrings
Justin Burkett [Mon, 26 Feb 2018 18:24:41 +0000 (13:24 -0500)]
Add which-key-toggle-docstrings

8 years agoConsolidate key binding collection into which-key--get-bindings
Justin Burkett [Mon, 26 Feb 2018 18:21:17 +0000 (13:21 -0500)]
Consolidate key binding collection into which-key--get-bindings

8 years agoRefactor show keymap functions
Justin Burkett [Mon, 26 Feb 2018 16:51:58 +0000 (11:51 -0500)]
Refactor show keymap functions

8 years agoUse symbol at point in whow keymap functions
Justin Burkett [Mon, 26 Feb 2018 03:51:11 +0000 (22:51 -0500)]
Use symbol at point in whow keymap functions

8 years agoFix which-key--show-keymap when no bidnings found
Justin Burkett [Mon, 26 Feb 2018 03:36:10 +0000 (22:36 -0500)]
Fix which-key--show-keymap when no bidnings found

which-key--get-formatted-key-bindings takes a nil argument to mean look for
global bindings which is not what we want here.

8 years agoDetect menu-items in which-key--get-keymap-bindings
Justin Burkett [Mon, 26 Feb 2018 03:35:38 +0000 (22:35 -0500)]
Detect menu-items in which-key--get-keymap-bindings

8 years agoFix typo in previous commit
Justin Burkett [Sat, 24 Feb 2018 21:35:16 +0000 (16:35 -0500)]
Fix typo in previous commit

8 years agoFix docstring of which-key--get-keymap-bindings
Justin Burkett [Sat, 24 Feb 2018 21:33:13 +0000 (16:33 -0500)]
Fix docstring of which-key--get-keymap-bindings

8 years agoFix descriptions of keys involving meta when showing keymaps
Justin Burkett [Sat, 24 Feb 2018 21:29:33 +0000 (16:29 -0500)]
Fix descriptions of keys involving meta when showing keymaps

8 years agoAutoload the show keymap functions
Justin Burkett [Fri, 23 Feb 2018 18:48:51 +0000 (13:48 -0500)]
Autoload the show keymap functions

8 years agoAdd which-key-show-full-keymap
Justin Burkett [Fri, 23 Feb 2018 18:34:11 +0000 (13:34 -0500)]
Add which-key-show-full-keymap

Command to show all bindings in a keymap recursively.

Add test for new which-key--get-keymap-bindings functionality.

8 years agoExtract which-key--ignore-keys-regexp and which-key-show-keymap-1
Justin Burkett [Fri, 23 Feb 2018 18:32:19 +0000 (13:32 -0500)]
Extract which-key--ignore-keys-regexp and which-key-show-keymap-1

8 years agoImprove which-key--format-and-replace
Justin Burkett [Wed, 31 Jan 2018 14:06:19 +0000 (09:06 -0500)]
Improve which-key--format-and-replace

Do a better job with nil descriptions

8 years agoHandle null description in which-key--propertize-description
Justin Burkett [Wed, 31 Jan 2018 14:02:55 +0000 (09:02 -0500)]
Handle null description in which-key--propertize-description

Fixes #186

8 years agoUse safe version of propertize
Justin Burkett [Wed, 31 Jan 2018 13:58:15 +0000 (08:58 -0500)]
Use safe version of propertize

Should fix #186

8 years agoFix description truncation when showing docstrings
Justin Burkett [Wed, 31 Jan 2018 13:04:24 +0000 (08:04 -0500)]
Fix description truncation when showing docstrings

8 years agoImprove which-key-show-docstrings option
Justin Burkett [Wed, 31 Jan 2018 12:45:27 +0000 (07:45 -0500)]
Improve which-key-show-docstrings option

Add setting docstring-only to omit command names. Add which-key-docstring-face.

See #185

8 years agoAdd option to show docstrings in which-key buffer
Justin Burkett [Wed, 31 Jan 2018 01:29:51 +0000 (20:29 -0500)]
Add option to show docstrings in which-key buffer

Implements a simple version of the suggestion in #185

8 years agoRemove debugging message
Justin Burkett [Tue, 9 Jan 2018 03:30:21 +0000 (22:30 -0500)]
Remove debugging message

8 years agoImplement #182
Justin Burkett [Tue, 9 Jan 2018 03:26:05 +0000 (22:26 -0500)]
Implement #182

Allow single digit arg to be set after C-h

8 years agoVersion 3.1.0
Justin Burkett [Tue, 9 Jan 2018 01:19:10 +0000 (20:19 -0500)]
Version 3.1.0

8 years agoFix and improve define-key based replacements
Justin Burkett [Mon, 18 Dec 2017 03:16:24 +0000 (22:16 -0500)]
Fix and improve define-key based replacements

Check for equality of definition as well as the key sequence. Unless it's a
prefix binding, in which case only check the key sequence.

Make sure we apply kbd when looking up pseudo bindings.

Move the logic into which-key--get-pseudo-binding.

8 years agoMerge pull request #183 from tarsiiformes/silencio
Justin Burkett [Sun, 17 Dec 2017 18:17:13 +0000 (13:17 -0500)]
Merge pull request #183 from tarsiiformes/silencio

Define which-key--current-key-list before using it

8 years agoDefine which-key--current-key-list before using it
Jonas Bernoulli [Sun, 17 Dec 2017 17:57:03 +0000 (18:57 +0100)]
Define which-key--current-key-list before using it

Actually move the definition of the caller which-key--pseudo-key
instead.

8 years agoSimplify implementation of define-key based replacements
Justin Burkett [Sun, 17 Dec 2017 03:11:59 +0000 (22:11 -0500)]
Simplify implementation of define-key based replacements

When a description is provided through define-key using a definition
like ("description" . def) place a additional binding in the map to a "pseudo
key" making it easy for which-key to find these descriptions on the fly and at
the right time (i.e., when the binding is active).

which-key-enable-extended-define-key must be enabled for this to have an
effect.

8 years agoImprove which-key--process-define-key-args
Justin Burkett [Fri, 15 Dec 2017 19:18:30 +0000 (14:18 -0500)]
Improve which-key--process-define-key-args

Specify Prefix Command as an explicit match string to cut down on false
positives.

8 years agoAnnounce which-key-enable-extended-define-key in README
Justin Burkett [Thu, 14 Dec 2017 02:12:50 +0000 (21:12 -0500)]
Announce which-key-enable-extended-define-key in README

8 years agoDemote errors in which-key--process-define-key-args
Justin Burkett [Thu, 14 Dec 2017 01:52:09 +0000 (20:52 -0500)]
Demote errors in which-key--process-define-key-args

8 years agoFix .travis.yml
Justin Burkett [Wed, 13 Dec 2017 18:06:55 +0000 (13:06 -0500)]
Fix .travis.yml

Didn't install cask

8 years agoFix travis build
Justin Burkett [Wed, 13 Dec 2017 18:02:51 +0000 (13:02 -0500)]
Fix travis build

Add support for 25.3. Remove for 24.3

8 years agoAllow null DEF in which-key--process-define-key-args
Justin Burkett [Wed, 13 Dec 2017 16:10:05 +0000 (11:10 -0500)]
Allow null DEF in which-key--process-define-key-args

This is useful for naming prefixes

8 years agoAdd which-key-enable-extended-define-key customization option
Justin Burkett [Wed, 13 Dec 2017 15:56:25 +0000 (10:56 -0500)]
Add which-key-enable-extended-define-key customization option

Adds supporting which-key--process-define-key-args.

The docstring for the option is

Advise `define-key' to make which-key aware of definitions of the form

  (define-key KEYMAP KEY '("DESCRIPTION" . DEF))

With the advice, this definition will have the side effect of creating a
replacement in `which-key-replacement-alist' that replaces DEF with DESCRIPTION
when the key sequence ends in KEY. Using a cons cell like this is a valid
definition for `define-key'. All this does is to make which-key aware of it.

Since many higher level keybinding functions use `define-key' internally, this
will affect most if not all of those as well.

This variable must be set before loading which-key.

8 years agoFix ordering of default replacement-alist
Justin Burkett [Thu, 7 Dec 2017 22:30:49 +0000 (17:30 -0500)]
Fix ordering of default replacement-alist

When which-key-allow-multiple-replacements is nil, this order is required to get
the intended behavior with left and right.

Ref #181

8 years agoAdd notes about paging commands not working with minibuffer
Justin Burkett [Tue, 5 Dec 2017 12:17:47 +0000 (07:17 -0500)]
Add notes about paging commands not working with minibuffer

8 years agoRe-indent README
Justin Burkett [Tue, 14 Nov 2017 15:10:43 +0000 (10:10 -0500)]
Re-indent README

8 years agoMention which-key-show-major-mode in README
Justin Burkett [Tue, 14 Nov 2017 15:04:31 +0000 (10:04 -0500)]
Mention which-key-show-major-mode in README

8 years agoConsolidate use of binding filters
Justin Burkett [Tue, 14 Nov 2017 15:00:14 +0000 (10:00 -0500)]
Consolidate use of binding filters

8 years agoImprove echo area note for which-key-show-major-mode
Justin Burkett [Tue, 14 Nov 2017 14:52:37 +0000 (09:52 -0500)]
Improve echo area note for which-key-show-major-mode

8 years agoAdd which-key-show-major-mode
Justin Burkett [Mon, 13 Nov 2017 20:17:16 +0000 (15:17 -0500)]
Add which-key-show-major-mode

This is a new function to discover bindings, including evil ones, in the keymap
of the current major mode. It should be considered experimental at the moment.

8 years agoUpdate which-key version for GNU ELPA
Justin Burkett [Thu, 17 Aug 2017 18:07:50 +0000 (14:07 -0400)]
Update which-key version for GNU ELPA

8 years agoMake minor changes to commentary in which-key.el
Justin Burkett [Wed, 9 Aug 2017 00:05:37 +0000 (20:05 -0400)]
Make minor changes to commentary in which-key.el

8 years agoAssign copyright to FSF for ELPA
Justin Burkett [Mon, 7 Aug 2017 20:27:12 +0000 (16:27 -0400)]
Assign copyright to FSF for ELPA

8 years agoFix which-key-show-remaining-keys option
Justin Burkett [Tue, 30 May 2017 12:25:52 +0000 (08:25 -0400)]
Fix which-key-show-remaining-keys option

8 years agoVersion 3.0.1
Justin Burkett [Sun, 28 May 2017 14:06:07 +0000 (10:06 -0400)]
Version 3.0.1

8 years agoHandle C-h when buffer not showing
Justin Burkett [Sat, 27 May 2017 19:34:54 +0000 (15:34 -0400)]
Handle C-h when buffer not showing

which-key-C-h-dispatch was not doing anything different if the which-key buffer
was not showing. This makes it fall back to the standard Emacs behavior.

Fixes #172

8 years agoMerge pull request #171 from wyuenho/patch-1
Justin Burkett [Sun, 21 May 2017 12:49:54 +0000 (08:49 -0400)]
Merge pull request #171 from wyuenho/patch-1

Customize which-key-sort-order with list

8 years agoCustomize which-key-sort-order with list
Jimmy Yuen Ho Wong [Sat, 20 May 2017 22:46:12 +0000 (23:46 +0100)]
Customize which-key-sort-order with list

This will display a list the user can choose from in customize instead of having them to type

8 years agoAdhere to 80 chars per column
Justin Burkett [Fri, 19 May 2017 21:55:13 +0000 (17:55 -0400)]
Adhere to 80 chars per column

8 years agoUse regexp-opt for regexps
Justin Burkett [Fri, 19 May 2017 21:53:43 +0000 (17:53 -0400)]
Use regexp-opt for regexps

* which-key.el (which-key--get-keymap-bindings): Update

8 years agoFixup previous commit
Justin Burkett [Fri, 19 May 2017 21:37:08 +0000 (17:37 -0400)]
Fixup previous commit

* which-key.el (which-key--compute-binding): Need to copy name of remapped
  command

Fixes #170

8 years agoAdd which-key-compute-remaps option
Justin Burkett [Fri, 19 May 2017 19:48:56 +0000 (15:48 -0400)]
Add which-key-compute-remaps option

* which-key.el (which-key--compute-binding): Add
(which-key--get-current-bindings): Modify to use prev function
(which-key-compute-remaps): Add option

Fixes #169

8 years agoVersion 3.0
Justin Burkett [Tue, 16 May 2017 12:37:06 +0000 (08:37 -0400)]
Version 3.0

8 years agoPrepare for ELPA release
Justin Burkett [Tue, 16 May 2017 12:34:44 +0000 (08:34 -0400)]
Prepare for ELPA release

Update min emacs version to 24.4 to remove backported functions. Remove outdated
comments.

8 years agoAdd .cask to gitignore
Justin Burkett [Tue, 16 May 2017 12:34:01 +0000 (08:34 -0400)]
Add .cask to gitignore

8 years agoUpdate emacs versions for Travis
Justin Burkett [Tue, 16 May 2017 11:35:36 +0000 (07:35 -0400)]
Update emacs versions for Travis

8 years agoMake -init-buffer-hook a custom var
Justin Burkett [Mon, 1 May 2017 12:44:32 +0000 (08:44 -0400)]
Make -init-buffer-hook a custom var

8 years agoAdd option to show transient maps
Justin Burkett [Thu, 27 Apr 2017 00:57:49 +0000 (20:57 -0400)]
Add option to show transient maps

Set which-key-show-transient-maps to a non-nil value to use this feature.

When a transient map is active and it is not a hydra, show the keys from the
map.

Fixes #164

8 years agoImprove which-key--any-match-p
Justin Burkett [Tue, 18 Apr 2017 12:01:40 +0000 (08:01 -0400)]
Improve which-key--any-match-p

9 years agoFix customize type for replacement-alist
Justin Burkett [Fri, 7 Apr 2017 13:05:10 +0000 (09:05 -0400)]
Fix customize type for replacement-alist

Ref #165

9 years agoFix replacement of keys when prefix is nil
Justin Burkett [Wed, 15 Mar 2017 17:55:01 +0000 (13:55 -0400)]
Fix replacement of keys when prefix is nil

The prefix is nil at the top-level keymap

Fixes #163

9 years agoFix handling of key ranges ("a .. d")
Justin Burkett [Thu, 9 Feb 2017 15:27:41 +0000 (10:27 -0500)]
Fix handling of key ranges ("a .. d")

When the last key in the key sequence is a range, extract the whole range
instead of just the final key.

Fixes #161

9 years agoVersion 2.0
Justin Burkett [Tue, 7 Feb 2017 15:55:14 +0000 (10:55 -0500)]
Version 2.0

Increased major version for replacement list changes

9 years agoAdd which-key-show-prefix 'mode-line option
Justin Burkett [Thu, 22 Dec 2016 20:21:37 +0000 (15:21 -0500)]
Add which-key-show-prefix 'mode-line option

See #157

9 years agoUpdate README
Justin Burkett [Tue, 20 Dec 2016 21:03:21 +0000 (16:03 -0500)]
Update README

9 years agoAdd which-key-max-display-columns
Justin Burkett [Tue, 20 Dec 2016 20:56:35 +0000 (15:56 -0500)]
Add which-key-max-display-columns

See #157

9 years agoRemove unused variable
Justin Burkett [Thu, 15 Dec 2016 14:58:32 +0000 (09:58 -0500)]
Remove unused variable

9 years agoFix #156 by allowing multiple replacements
Justin Burkett [Thu, 15 Dec 2016 14:42:08 +0000 (09:42 -0500)]
Fix #156 by allowing multiple replacements

Add which-key-allow-multiple-replacements which can be set to allow multiple
replacements from which-key-replacement-alist to apply to a key binding.

Switch from using assoc-default to find replacements to
which-key--get-replacements.

Adjusts tests and add a new one for multiple replacements.

9 years agoTweak TOC in README and fix a link
Justin Burkett [Mon, 12 Dec 2016 14:04:44 +0000 (09:04 -0500)]
Tweak TOC in README and fix a link

9 years agoAdd a missing type declaration
Justin Burkett [Wed, 7 Dec 2016 15:14:08 +0000 (10:14 -0500)]
Add a missing type declaration

9 years agoPrevent display from occurring twice in a row
Justin Burkett [Mon, 5 Dec 2016 19:09:36 +0000 (14:09 -0500)]
Prevent display from occurring twice in a row

Found some cases where this could happen with a secondary idle delay.

9 years agoAdd basic timing facility for debugging.
Justin Burkett [Mon, 5 Dec 2016 18:55:25 +0000 (13:55 -0500)]
Add basic timing facility for debugging.